﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

[WebService(Namespace = "stud.brains.service")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

public class Banks : System.Web.Services.WebService
{

    public Banks()
    {
        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public double Average(int n1, int n2)
    {
        return (double)Sum(n1, n2) / 2;
    }

    private int Sum(int n1, int n2)
    {
        return n1 + n2;
    }
}
